package com.framework.base.struts; 

import java.util.Map;

import com.framework.base.taglib.page.Pagination;

/**
 * Description:用于处理service层的返回值
 * tabaleName(对应的表名):
 * Company: framework
 * @author：www.51wuxia.com
 * @version 1.0
 * @Date Jun 8, 2011 11:10:51 PM
 */
public class Result {
	private String forwardName; //转发路径
	private BaseVo vo;
	private Map<String,Object> resultMap; //结果转发
	private Pagination page;
	public Result(String forwardName) {
		super();
		this.forwardName = forwardName;
	}

	public Result(String forwardName, BaseVo vo) {
		super();
		this.forwardName = forwardName;
		this.vo = vo;
	}

	public Result(String forwardName, Pagination page) {
		super();
		this.forwardName = forwardName;
		this.page = page;
	}

	public Result(String forwardName, Map<String, Object> resultMap) {
		super();
		this.forwardName = forwardName;
		this.resultMap = resultMap;
	}

	public String getForwardName() {
		return forwardName;
	}

	public void setForwardName(String forwardName) {
		this.forwardName = forwardName;
	}

	public BaseVo getVo() {
		return vo;
	}

	public void setVo(BaseVo vo) {
		this.vo = vo;
	}

	public Map<String, Object> getResultMap() {
		return resultMap;
	}

	public void setResultMap(Map<String, Object> resultMap) {
		this.resultMap = resultMap;
	}

	public Pagination getPage() {
		return page;
	}

	public void setPage(Pagination page) {
		this.page = page;
	}
}
